package com.webside.series.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.webside.base.basemapper.BaseMapper;
import com.webside.series.model.Bdictionary;
 



public interface BdictionaryMapper extends BaseMapper<Bdictionary, Long>  {
    
  	 //频道查询
  	public List<Bdictionary>selectBychannel(Bdictionary record); 
  	 // 查询所有的频道 type='CHANNEL'
  	List<Bdictionary> selectAllChannels(Bdictionary channel);
   
	List<Bdictionary> selectAllChannels();
	
	List<Bdictionary> selectChannels(Bdictionary channel);
    // 查询频道的类型
    List<Bdictionary> selectTypeByChannel(Bdictionary channel);
    List<Bdictionary> selectTypeByChannelCode(Bdictionary channel);
    //频道分类查询
    List<Bdictionary> selectKindByChannel(Bdictionary channel);
  
    //查询年份
    List<Bdictionary> selectYear(Bdictionary channel);
    //查询清晰度
    List<Bdictionary> selectVideoByClarity(Bdictionary channel);
    //查询地区
    List<Bdictionary> selectArea(Bdictionary channel);
    //查询语言
    List<Bdictionary> selectLanguage(Bdictionary channel);
    //查询等级
    List<Bdictionary> selectTypeByPosition(Bdictionary channel);
    //显示和隐藏
    List<Bdictionary> selectByStatus(Bdictionary channel);
    //查询type
    List<Bdictionary> typeByAlls(Bdictionary channel);
    //查询kind
    List<Bdictionary> kindByAlls(Bdictionary channel);
    //添加
    public int insert(Bdictionary dictionary);
    //修改
    public int update(Bdictionary dictionary);
    //修改seo
    public 	int updateSeo(Bdictionary dictionary);
  	//seo首页标题查询
  	public List<Bdictionary> seoByAll(Bdictionary dictionary); 
  	//seo首页关键字查询
  	public List<Bdictionary> seoByKeywords(Bdictionary dictionary);
  	//seo首页描述查询
  	public List<Bdictionary> seoByIndex(Bdictionary dictionary);
	//seo搜索页标题查询
  	public List<Bdictionary> seoByTitle(Bdictionary dictionary); 
	//seo搜索页关键字查询
  	public List<Bdictionary> seoByResearch(Bdictionary dictionary); 
	//seo搜索页描述查询
  	public List<Bdictionary> seoByMeishu(Bdictionary dictionary); 
  	//seo搜索框关键词
  	public List<Bdictionary> seoBySearch(Bdictionary dictionary); 
    //刪除
    public int deleteBatchById(List<Long> dictIds); 
    //剧集管理
    public List<Bdictionary> selectListByDiction(Map<String, Object> parameter);
    //查询所属大类
    List<Bdictionary> selectTypeByAll(Bdictionary channel);
    //查询分类  
    List<Bdictionary> selectTypeAll(Bdictionary channel);
    //类型分类；
    List<Bdictionary> selectTypeSerieskind(Map<String, Object> parameter);
    //年份分类
    List<Bdictionary> selectTypeYear(Map<String, Object> parameter);
    //地区分类
    List<Bdictionary> selectTypeArea(Map<String, Object> parameter);
   //地区Seo
    List<Bdictionary> selectTypeSeo(Map<String, Object> parameter);
    //广告类型
    List<Bdictionary> queryAdType(Bdictionary bdictionary);
    //所有广告类型
    List<Bdictionary> queryAllAdType(Map<String, Object> parameter);
    //所有广告位类型
    List<Bdictionary> findPositionTypes();
   
    // 根据参数查询不同到字典数据信息 lpz
 	public List<Bdictionary> dictionaryList(@Param("type") String type, @Param("code") String code);
    
}